200
|
Disables the control
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add(_bstr_t("<img>1</img>Asia(4600),<img>2</img>Africa(1300),<img>3</img>Europe(747),<img>4</img>North America(579),<img>5</img>South Americ") +
"a(433),<img>6</img>Australia/Oceania(42)",vtMissing);
spGraph1->PutEnabled(VARIANT_FALSE);
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
199
|
Show icons
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add(_bstr_t("<img>1</img>Asia(4600),<img>2</img>Africa(1300),<img>3</img>Europe(747),<img>4</img>North America(579),<img>5</img>South Americ") +
"a(433),<img>6</img>Australia/Oceania(42)",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
198
|
Displays the control's version
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
OutputDebugStringW( spGraph1->GetVersion() );
|
197
|
Changes the control's border (EBN)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGraph1->PutAppearance(EXGRAPHLib::AppearanceEnum(0x1000000));
spGraph1->GetSeries()->Add("Asia(4600),Africa(1300),Europe(747),North America(579),South America(433),Australia/Oceania(42)",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
196
|
Changes the control's border
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutAppearance(EXGRAPHLib::Flat);
spGraph1->GetSeries()->Add("Asia(4600),Africa(1300),Europe(747),North America(579),South America(433),Australia/Oceania(42)",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
195
|
Display the logo on the control's background
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutPicture(IPictureDispPtr(((ObjectPtr)(spGraph1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\card.png`)")))));
spGraph1->PutPictureDisplay(EXGRAPHLib::UpperRight);
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
194
|
Changes the control's font
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr var_StdFont = spGraph1->GetFont();
var_StdFont->PutName(L"Tahoma");
var_StdFont->PutSize(_variant_t(long(12)));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutType(L"Pie");
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + (percent format ``) + `%`");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
193
|
Shows the value-scroll (vertical scroll bar for area-compatible chart types)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(8);
spGraph1->PutMisc(EXGRAPHLib::exAllowValueScroll,double(1.5));
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"msft");
var_Serie->PutData("Open,High,Low,Close");
var_Serie->PutType(L"candle");
spGraph1->EndUpdate();
|
192
|
No values are shown
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutMisc(EXGRAPHLib::exShowValueIf,long(0));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + value");
spGraph1->EndUpdate();
|
191
|
No labels on category-axis are shown
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(15);
spGraph1->PutMisc(EXGRAPHLib::exShowLabelsIf,long(0));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Date");
var_CategoryAxis->PutFormat(L"value mid 9 left 2");
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"msft");
var_Serie->PutData("Open,High,Low,Close");
var_Serie->PutType(L"candle");
spGraph1->EndUpdate();
|
190
|
No category grid lins are shown
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(8);
spGraph1->PutMisc(EXGRAPHLib::exShowGridLinesIf,long(0));
spGraph1->GetCategoryAxis()->GetMajorGridLines()->PutColor("lightgray");
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"msft");
var_Serie->PutData("Open,High,Low,Close");
var_Serie->PutType(L"candle");
spGraph1->EndUpdate();
|
189
|
No category ticks are shown
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(8);
spGraph1->PutMisc(EXGRAPHLib::exShowTicksIf,long(0));
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"msft");
var_Serie->PutData("Open,High,Low,Close");
var_Serie->PutType(L"candle");
spGraph1->EndUpdate();
|
188
|
Defines the lower and upper margins of the valueSize property (CTRL + Middle button and drag to resize the values)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(8);
spGraph1->PutMisc(EXGRAPHLib::exValueSizeRange,"1,12");
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"msft");
var_Serie->PutData("Open,High,Low,Close");
var_Serie->PutType(L"candle");
spGraph1->EndUpdate();
|
187
|
Even though I set the AutoFit property to False, the control still gets resized when I click CTRL + Middle button
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(8);
spGraph1->PutMisc(EXGRAPHLib::exValueSizeRange,"0,8");
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->EndUpdate();
|
186
|
Defines the angle (in degrees) the value-line is rotated by, when the values goes up(positive) or down(negative)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exValueLineUpAngle,long(0));
spGraph1->PutMisc(EXGRAPHLib::exValueLineDownAngle,long(90));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Green,Black,Red,Lime,Orange,Red");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,331,-1390,-276,1225,213",vtMissing);
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + (value format ``)");
var_Serie->PutType(L"line");
spGraph1->EndUpdate();
|
185
|
Defines the additional angle (in degrees) the value-line is rotated by
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exValueLineAddAngle,long(0));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + (percent format ``) + `%`");
spGraph1->EndUpdate();
|
184
|
Defines the distance to extend the value-line by
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exValueLineExt,long(12));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + value");
spGraph1->EndUpdate();
|
183
|
Defines the distance from the edge of the outer circle where the values are displayed
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutMisc(EXGRAPHLib::exValueDistOuterCircular,long(0));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutType(L"Pie");
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + (percent format ``) + `%`");
spGraph1->PutValuePoint(L",,,,,,,red,black,2");
spGraph1->EndUpdate();
|
182
|
Defines the distance from the edge of the inner circle where the values are displayed
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutMisc(EXGRAPHLib::exValueDistInnerCircular,long(8));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutType(L"Pie");
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + (percent format ``) + `%`");
spGraph1->EndUpdate();
|
181
|
Defines the padding between rings of the "pie" chart-type
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutMisc(EXGRAPHLib::exPaddingInsidePie,long(12));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutType(L"Pie");
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + (percent format ``) + `%`");
EXGRAPHLib::ISeriePtr var_Serie1 = spGraph1->GetSeries()->Add("141,139,331,276,225,213",vtMissing);
var_Serie1->PutType(L"Pie");
var_Serie1->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie1->PutValueFormat(L"`<c>` + category + `<br><c>` + (percent format ``) + `%`");
spGraph1->EndUpdate();
|
180
|
Requests for a new layout once the serie's visible property is changed
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutMisc(EXGRAPHLib::exNewLayoutOnVisibleChange,VARIANT_FALSE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
var_Serie->PutType(L"Pie");
var_Serie->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
var_Serie->PutValueFormat(L"`<c>` + category + `<br><c>` + (percent format ``) + `%`");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
179
|
Prevents rotating the labels
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exRadialRotateLabels,VARIANT_FALSE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing)->PutType(L"radarColumn");
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
178
|
Defines the angle (in degrees) to start the circular-compatible charts (radial or pie)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exCircularStartAngle,long(0));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing)->PutType(L"radarColumn");
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
177
|
Defines polygonal instead of circular
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exRadarPolygonal,VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing)->PutType(L"radarColumn");
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
176
|
Defines the distance (proportionally with the valueSize property) between the first, next and last value of the same category and its border
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exMarginValueRatio,double(0.5));
spGraph1->PutMisc(EXGRAPHLib::exPaddingValueRatio,double(0.5));
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->GetSeries()->Add("9900,3300,980,190,90,8",vtMissing);
spGraph1->EndUpdate();
|
175
|
Ensures that the marginal labels of the value-axis ensure fit the axis's client-rectangle
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exValueAxisFitLabel,VARIANT_TRUE);
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
174
|
Prevents updating the margins/minimum/maximum of the value-axis when the user scrolls the data
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(6);
spGraph1->PutMisc(EXGRAPHLib::exUpdateRangeOnScroll,long(0));
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutData("Volume");
var_Serie->PutType(L"candle");
spGraph1->EndUpdate();
|
173
|
Defines the padding for labels and title of the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exValueAxisPad,long(16));
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
172
|
Defines the size (height for horizontal axis and width for vertical axis) to display the category-axis (line and ticks)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exValueAxisSize,long(16));
spGraph1->GetValueAxis()->PutOffsetLabel(L"16,16");
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
171
|
Defines the padding for labels and title of the category-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exCategoryAxisPad,long(16));
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
170
|
Defines the size (height for horizontal axis and width for vertical axis) to display the category-axis (line and ticks)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exCategoryAxisSize,long(16));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
var_CategoryAxis->PutOffsetLabel(L"0,-16");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
169
|
Defines the minimum/maximum portion (as a proportion of major unit, as a numeric-value between 0 and 1) to extend the axis before the first/after the last value of the serie (minimum, maximum value)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::extVisibleBeforeAxis,long(1));
spGraph1->PutMisc(EXGRAPHLib::extVisibleAfterAxis,long(1));
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
168
|
Defines the number of digits to appear after the decimal point (as it is)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exDigits,long(-1));
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410.1211,1390.8999,331.3421,276.8991,225.0023,213.2231",vtMissing)->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
167
|
Defines the number of digits to appear after the decimal point
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exDigits,long(3));
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410.1211,1390.8999,331.3421,276.8991,225.0023,213.2231",vtMissing)->PutShowValue(EXGRAPHLib::ShowValueEnum(EXGRAPHLib::exValue | EXGRAPHLib::exLine | EXGRAPHLib::exPoint));
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
166
|
Defines the inferior and superior limits of the number of major-unit intervals an axis can display
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exRangeMajorUnits,"2");
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
165
|
Defines the base major-units alternatives (separated by comma) the control uses to calculate the major-unit for the axes
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutMisc(EXGRAPHLib::exBaseMajorUnits,"5");
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
164
|
Customizes the tooltips to show on category-axis, when the crosshair intersects the category-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxisPtr var_ValueAxis = spGraph1->GetValueAxis();
var_ValueAxis->PutFormat(L"value + `°`");
var_ValueAxis->PutCursorFormat(L"``");
spGraph1->GetCategoryAxis()->PutCursorFormat(L"`<b><fgcolor F0F0F0> ` + value + ` `");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain");
var_Serie->PutType(L"RangeColumn");
var_Serie->PutCursorFormat(L"%V0 +`° - ` + %V1 + `°`");
spGraph1->PutSeriesColors("green");
EXGRAPHLib::IExCursorPtr var_Cursor = spGraph1->GetCursor();
var_Cursor->PutVisible(VARIANT_TRUE);
var_Cursor->PutSerieTooltipBackColor("black");
var_Cursor->PutSerieTooltipForeColor("rgb(254,254,254)");
var_Cursor->PutTooltipPad(long(4));
var_Cursor->PutShowCursorValueLine(VARIANT_FALSE);
spGraph1->EndUpdate();
|
163
|
Defines the configuration options to show the grid lines and labels between for the overview panel
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
EXGRAPHLib::IValueAxisPtr var_ValueAxis = spGraph1->GetValueAxis();
var_ValueAxis->PutFormat(L"value / 1000000");
var_ValueAxis->PutMajorUnit(long(50000000));
EXGRAPHLib::IFormatGridLinesOptionsPtr var_FormatGridLinesOptions = spGraph1->GetCategoryAxis()->GetOverviewGridLines();
var_FormatGridLinesOptions->PutFormat(L"`<fgcolor red><b>` + (value left 4)");
var_FormatGridLinesOptions->PutColor("red");
var_FormatGridLinesOptions->PutStyle(1);
var_FormatGridLinesOptions->PutWidth(2);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
spGraph1->PutSeriesColors("blue");
spGraph1->GetSeries()->Add("Volume",vtMissing);
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
162
|
Add additional grid-lines for categories
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::IFormatGridLinesOptionsPtr var_FormatGridLinesOptions = var_CategoryAxis->GetChartGridLines();
var_FormatGridLinesOptions->PutFormat(L"value = `Pakistan`");
var_FormatGridLinesOptions->PutAlign(EXGRAPHLib::exTextCalcRect);
var_FormatGridLinesOptions->PutWidth(2);
var_FormatGridLinesOptions->PutColor("black");
var_FormatGridLinesOptions->PutSkip(1);
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("lime");
spGraph1->EndUpdate();
|
161
|
Add grid-lines for categories
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("lime");
spGraph1->EndUpdate();
|
160
|
Shifts horizontally or vertically the labels relative to their original positions
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(48);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->PutOffsetLabel(L"0,-22");
var_CategoryAxis->PutTfi(L"<fgcolor red> bold");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("lime");
spGraph1->EndUpdate();
|
159
|
Combines/Merges categories sharing consecutive names according to the Format property
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetCategoryAxis()->PutVisible(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxes()->Add("Winter,Winter,Spring,Spring,Spring,Summer,Summer,Summer,Autumn,Autumn,Autumn,Winter",vtMissing);
var_CategoryAxis->PutFormat(L"value");
var_CategoryAxis->PutSplit(VARIANT_TRUE);
var_CategoryAxis->GetMajorGridLines()->PutColor("black");
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->PutSeriesColors("lime");
spGraph1->EndUpdate();
|
158
|
Combines/Merges categories sharing consecutive names according to the Format property
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv");
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Date");
var_CategoryAxis->PutFormat(L"dateS(value left 7) format `MMM`");
var_CategoryAxis->PutSplit(VARIANT_TRUE);
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"msft");
var_Serie->PutData("Open,High,Low,Close");
var_Serie->PutType(L"candle");
spGraph1->EndUpdate();
|
157
|
Defines the category-axis's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetCategoryAxis()->PutVisible(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxes()->Add("Winter,Winter,Spring,Spring,Spring,Summer,Summer,Summer,Autumn,Autumn,Autumn,Winter",vtMissing);
var_CategoryAxis->PutFormat(L"value");
var_CategoryAxis->PutSplit(VARIANT_TRUE);
var_CategoryAxis->PutTfi(L"bold");
var_CategoryAxis->PutColor(long(14474460));
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->GetSeries()->Add(_bstr_t("Jan(-4 2), Feb(-3 4), Mar(1 10), Apr(5 16), May(10 21), Jun(13 25), Jul(15 28), Aug(14 27), Sep(10 22), Oct(5 15), Nov(0 7), De") +
"c(-3 3)","Romania")->PutType(L"RangeColumn");
EXGRAPHLib::ILegendPtr var_Legend = spGraph1->GetLegend();
var_Legend->PutVisible(VARIANT_TRUE);
var_Legend->PutDock(EXGRAPHLib::exLeft);
spGraph1->EndUpdate();
|
156
|
Defines the color, size, style, skip and step configuration options of the major ticks to be shown on the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
EXGRAPHLib::ITickOptionsPtr var_TickOptions = spGraph1->GetCategoryAxis()->GetMajorTicks();
var_TickOptions->PutColor("red");
var_TickOptions->PutWidth(4);
var_TickOptions->PutStyle(0);
var_TickOptions->PutSkip(3);
var_TickOptions->PutStep(2);
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->PutSeriesColors("green");
spGraph1->EndUpdate();
|
155
|
Defines the color, size, style, skip and step configuration options of the major grid-lines to be shown by the value-axis on the chart panel
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
EXGRAPHLib::IGridLinesOptionsPtr var_GridLinesOptions = spGraph1->GetCategoryAxis()->GetMajorGridLines();
var_GridLinesOptions->PutColor("red");
var_GridLinesOptions->PutWidth(4);
var_GridLinesOptions->PutStyle(0);
var_GridLinesOptions->PutSkip(3);
var_GridLinesOptions->PutStep(2);
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->PutSeriesColors("green");
spGraph1->EndUpdate();
|
154
|
Defines the color, size and style to display the line of the category-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
EXGRAPHLib::ILineOptionsPtr var_LineOptions = spGraph1->GetCategoryAxis()->GetAxisLine();
var_LineOptions->PutColor("red");
var_LineOptions->PutWidth(2);
var_LineOptions->PutStyle(0);
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->PutSeriesColors("green");
spGraph1->EndUpdate();
|
153
|
Specifies the rotation angle (in degrees) for the title and labels of the category-axis, in 'labels,title' format
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
spGraph1->GetCategoryAxis()->PutAngle(L"-90");
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->PutSeriesColors("green");
spGraph1->EndUpdate();
|
152
|
Defines the title of the category-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
spGraph1->GetCategoryAxis()->PutTitle(L"<b>Range-Temperature");
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->PutSeriesColors("green");
spGraph1->EndUpdate();
|
151
|
Changes the font attributes to apply on the title and labels of the category-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->PutTfi(L"<fgcolor red> Tahoma 7 bold");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
150
|
Defines the direction of the category axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->PutReverse(VARIANT_TRUE);
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
149
|
Aligns the category-axis to bottom/right or top/left side of the view
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->PutAlign(EXGRAPHLib::exAlignLeft);
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
148
|
Hides the category axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->PutVisible(VARIANT_FALSE);
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
147
|
Customizes the labels to show on category axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
var_CategoryAxis->PutFormat(L"(index < 2 ? `<b>` : `<fgcolor gray>`) + value");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
146
|
Defines the categories (method 2)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add(_bstr_t("China(1410),India(1390),United States(331),Indonesia(276),Pakistan(225),Brazil(213),Nigeria(211),Bangladesh(166),Russia(145),Me") +
"xico(130)",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
145
|
Defines the categories (method 1)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetCategoryAxis()->PutCategories("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico");
spGraph1->GetSeries()->Add("1410,1390,331,276,225,213,211,166,145,130",vtMissing);
spGraph1->PutSeriesColors("blue");
spGraph1->EndUpdate();
|
144
|
Adds multiple category-axes
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetCategoryAxis()->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxes()->Add("Winter,Winter,Spring,Spring,Spring,Summer,Summer,Summer,Autumn,Autumn,Autumn,Winter",vtMissing);
var_CategoryAxis->PutFormat(L"value");
var_CategoryAxis->PutSplit(VARIANT_TRUE);
var_CategoryAxis->PutTfi(L"bold");
var_CategoryAxis->GetMajorGridLines()->PutColor("black");
spGraph1->GetValueAxis()->PutFormat(L"value + `°`");
spGraph1->GetSeries()->Add(_bstr_t("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)","Spain")->PutType(L"RangeColumn");
spGraph1->GetSeries()->Add(_bstr_t("Jan(-4 2), Feb(-3 4), Mar(1 10), Apr(5 16), May(10 21), Jun(13 25), Jul(15 28), Aug(14 27), Sep(10 22), Oct(5 15), Nov(0 7), De") +
"c(-3 3)","Romania")->PutType(L"RangeColumn");
EXGRAPHLib::ILegendPtr var_Legend = spGraph1->GetLegend();
var_Legend->PutVisible(VARIANT_TRUE);
var_Legend->PutDock(EXGRAPHLib::exLeft);
spGraph1->EndUpdate();
|
143
|
Redefines the major-unit of the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutMajorUnit(long(1000));
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
142
|
Redefines the margins/limits of the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxisPtr var_ValueAxis = spGraph1->GetValueAxis();
var_ValueAxis->PutMin(long(-100));
var_ValueAxis->PutMax(long(6000));
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
141
|
Defines the start/end position of the value-axis (relative to full axis)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxesPtr var_ValueAxes = spGraph1->GetValueAxes();
var_ValueAxes->Add("p")->PutEnd(double(0.75));
EXGRAPHLib::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add("a");
var_ValueAxis->PutEnd(double(0.25));
var_ValueAxis->PutVisible(VARIANT_FALSE);
var_ValueAxis->PutColorChart(long(16119285));
var_ValueAxis->PutReverse(VARIANT_TRUE);
var_ValueAxis->GetMajorGridLines()->PutWidth(0);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutAxis(L"p");
var_Serie->PutType(L"Line");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
EXGRAPHLib::ISeriePtr var_Serie1 = var_Series->Add("4458,3037,1018,2470,1784,1018,856",vtMissing);
var_Serie1->PutName(L"Area");
var_Serie1->PutAxis(L"a");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
140
|
Customizes the tooltips to show on value-axis, when the crosshair hovers the chart
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxisPtr var_ValueAxis = spGraph1->GetValueAxis();
var_ValueAxis->PutFormat(L"value format `0`");
var_ValueAxis->PutCursorFormat(L"value format `0`");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->GetCursor()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
139
|
Hides the tooltip that's shown over the value-axis, while cursor hovers the serie
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutCursorFormat(L"``");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->GetCursor()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
138
|
Shifts horizontally or vertically the labels relative to their original positions
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutOffsetLabel(L"4,8");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
137
|
Defines the color to apply on the chart's background right to the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutColorChart("red");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
136
|
Changes the value-axis's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutColor("red");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
135
|
Defines the color, size, style, skip and step configuration options of the major grid-lines to be shown by the value-axis on the chart panel
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IGridLinesOptionsPtr var_GridLinesOptions = spGraph1->GetValueAxis()->GetMajorGridLines();
var_GridLinesOptions->PutColor("red");
var_GridLinesOptions->PutWidth(4);
var_GridLinesOptions->PutStyle(0);
var_GridLinesOptions->PutSkip(3);
var_GridLinesOptions->PutStep(2);
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
134
|
Defines the color, size, style, skip and step configuration options of the major ticks to be shown on the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ITickOptionsPtr var_TickOptions = spGraph1->GetValueAxis()->GetMajorTicks();
var_TickOptions->PutColor("red");
var_TickOptions->PutWidth(4);
var_TickOptions->PutStyle(0);
var_TickOptions->PutSkip(3);
var_TickOptions->PutStep(2);
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
133
|
Defines the color, size and style to display the line of the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::ILineOptionsPtr var_LineOptions = spGraph1->GetValueAxis()->GetAxisLine();
var_LineOptions->PutColor("red");
var_LineOptions->PutWidth(2);
var_LineOptions->PutStyle(0);
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
132
|
Converts the serie's values to [0,1] range, as percentages (the values area always numbers between 0 and 1)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxisPtr var_ValueAxis = spGraph1->GetValueAxis();
var_ValueAxis->PutAsPercent(VARIANT_TRUE);
var_ValueAxis->PutFormat(L"value * 100 + `%`");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
131
|
Defines the rotation angle (in degrees) for the title and labels of the axis, in 'labels,title' format
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxisPtr var_ValueAxis = spGraph1->GetValueAxis();
var_ValueAxis->PutAngle(L"-90,-90");
var_ValueAxis->PutTitle(L"<b>mil");
var_ValueAxis->PutFormat(L"value ? value format `0` : ``");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
130
|
Defines the title of the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutTitle(L"<b>mil");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
129
|
Specifies the font attributes to apply on the title and labels of the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutTfi(L"<fgcolor red> Tahoma 10 bold");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
128
|
Defines the direction of the value axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutReverse(VARIANT_TRUE);
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
127
|
Aligns the value-axis to bottom/right or top/left side of the view
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutAlign(EXGRAPHLib::exAlignRight);
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
126
|
Customizes the labels of the value axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutFormat(L"value ? `<c><b>` + (value format `0`) + `</b><br><c><fgcolor lightgray>mil` : ``");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
125
|
Customizes the labels of the value axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutFormat(L"value ? (value format `0`) + ` mil` : ``");
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
124
|
Hides the value-axis
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetValueAxis()->PutVisible(VARIANT_FALSE);
spGraph1->GetCategoryAxis()->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
spGraph1->EndUpdate();
|
123
|
Changes the position of value-axis (click to change the value-axis's position)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickGraph1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->GetValueAxes()->GetItem("a")->PutPosition(0);
}
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxesPtr var_ValueAxes = spGraph1->GetValueAxes();
var_ValueAxes->Add("p");
var_ValueAxes->Add("a")->PutColor("teal");
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutAxis(L"p");
var_Serie->PutType(L"Line");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
EXGRAPHLib::ISeriePtr var_Serie1 = var_Series->Add("4458,3037,1018,2470,1784,1018,856",vtMissing);
var_Serie1->PutName(L"Area");
var_Serie1->PutAxis(L"a");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
122
|
Access the value-axis giving its name (click to change the value-axis's background)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickGraph1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->GetValueAxes()->GetItem("a")->PutColorChart(long(16119285));
spGraph1->Refresh();
}
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxesPtr var_ValueAxes = spGraph1->GetValueAxes();
var_ValueAxes->Add("p")->PutStart(double(0.25));
EXGRAPHLib::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add("a");
var_ValueAxis->PutEnd(double(0.25));
var_ValueAxis->PutVisible(VARIANT_FALSE);
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutAxis(L"p");
var_Serie->PutType(L"Line");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
EXGRAPHLib::ISeriePtr var_Serie1 = var_Series->Add("4458,3037,1018,2470,1784,1018,856",vtMissing);
var_Serie1->PutName(L"Area");
var_Serie1->PutAxis(L"a");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
121
|
Specifies the name of the value axis to use
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutValueSize(18);
EXGRAPHLib::IValueAxesPtr var_ValueAxes = spGraph1->GetValueAxes();
EXGRAPHLib::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add("pop-ax");
var_ValueAxis->PutName(L"pop-ax");
var_ValueAxis->PutStart(double(0.25));
var_ValueAxis->PutAlign(EXGRAPHLib::exAlignLeft);
EXGRAPHLib::IValueAxisPtr var_ValueAxis1 = var_ValueAxes->Add("area-ax");
var_ValueAxis1->PutName(L"area-ax");
var_ValueAxis1->PutEnd(double(0.25));
var_ValueAxis1->PutVisible(VARIANT_FALSE);
var_ValueAxis1->PutColorChart(long(16119285));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutAxis(L"pop-ax");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
var_Serie->PutVertical(VARIANT_TRUE);
EXGRAPHLib::ISeriePtr var_Serie1 = var_Series->Add("4458,3037,1018,2470,1784,1018,856",vtMissing);
var_Serie1->PutName(L"Area");
var_Serie1->PutAxis(L"area-ax");
EXGRAPHLib::ILegendPtr var_Legend = spGraph1->GetLegend();
var_Legend->PutVisible(VARIANT_TRUE);
var_Legend->PutDock(EXGRAPHLib::exLeft);
var_Legend->PutAlign(EXGRAPHLib::exStart);
spGraph1->EndUpdate();
|
120
|
Remove a value-axis (click to remove the first value-axis)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickGraph1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->GetValueAxes()->Remove(long(0));
}
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxesPtr var_ValueAxes = spGraph1->GetValueAxes();
var_ValueAxes->Add("p")->PutStart(double(0.25));
EXGRAPHLib::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add("a");
var_ValueAxis->PutEnd(double(0.25));
var_ValueAxis->PutVisible(VARIANT_FALSE);
var_ValueAxis->PutColorChart(long(16119285));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutAxis(L"p");
var_Serie->PutType(L"Line");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
EXGRAPHLib::ISeriePtr var_Serie1 = var_Series->Add("4458,3037,1018,2470,1784,1018,856",vtMissing);
var_Serie1->PutName(L"Area");
var_Serie1->PutAxis(L"a");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
119
|
Remove all value-axes (click to clear the value-axes)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickGraph1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->GetValueAxes()->Clear();
}
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxesPtr var_ValueAxes = spGraph1->GetValueAxes();
var_ValueAxes->Add("p")->PutStart(double(0.25));
EXGRAPHLib::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add("a");
var_ValueAxis->PutEnd(double(0.25));
var_ValueAxis->PutVisible(VARIANT_FALSE);
var_ValueAxis->PutColorChart(long(16119285));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutAxis(L"p");
var_Serie->PutType(L"Line");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
EXGRAPHLib::ISeriePtr var_Serie1 = var_Series->Add("4458,3037,1018,2470,1784,1018,856",vtMissing);
var_Serie1->PutName(L"Area");
var_Serie1->PutAxis(L"a");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
118
|
Adds multiple value-axes
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
EXGRAPHLib::IValueAxesPtr var_ValueAxes = spGraph1->GetValueAxes();
var_ValueAxes->Add("p")->PutStart(double(0.25));
EXGRAPHLib::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add("a");
var_ValueAxis->PutEnd(double(0.25));
var_ValueAxis->PutVisible(VARIANT_FALSE);
var_ValueAxis->PutColorChart(long(16119285));
EXGRAPHLib::ICategoryAxisPtr var_CategoryAxis = spGraph1->GetCategoryAxis();
var_CategoryAxis->PutCategories("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania");
var_CategoryAxis->GetMajorGridLines()->PutColor("lightgray");
EXGRAPHLib::ISeriesPtr var_Series = spGraph1->GetSeries();
EXGRAPHLib::ISeriePtr var_Serie = var_Series->Add("4600,1300,747,579,0,422,42",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutAxis(L"p");
var_Serie->PutType(L"Line");
var_Serie->PutMisc(EXGRAPHLib::exLineSize,long(3));
EXGRAPHLib::ISeriePtr var_Serie1 = var_Series->Add("4458,3037,1018,2470,1784,1018,856",vtMissing);
var_Serie1->PutName(L"Area");
var_Serie1->PutAxis(L"a");
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
117
|
Defines the foreground color to show the visible values within the control's legend
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutBackground(EXGRAPHLib::exLegendLabel,RGB(0,0,1));
spGraph1->PutBackground(EXGRAPHLib::exLegendSymbol,RGB(0,0,1));
spGraph1->GetSeries()->Add("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)",vtMissing)->PutName(L"Area");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutVisible(VARIANT_FALSE);
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
116
|
Defines a different background color to show the visible values within the control's legend
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutBackground(EXGRAPHLib::exLegendUnit,RGB(240,240,240));
spGraph1->GetSeries()->Add("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)",vtMissing)->PutName(L"Area");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutVisible(VARIANT_FALSE);
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
115
|
Defines a different background color to show the hidden values within the control's legend
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutBackground(EXGRAPHLib::exLegendUnitHidden,RGB(240,240,240));
spGraph1->GetSeries()->Add("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)",vtMissing)->PutName(L"Area");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutVisible(VARIANT_FALSE);
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
114
|
Defines the foreground color to show the hidden values within the control's legend
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->PutBackground(EXGRAPHLib::exLegendLabelHidden,RGB(220,220,220));
spGraph1->PutBackground(EXGRAPHLib::exLegendSymbolHidden,RGB(220,220,220));
spGraph1->GetSeries()->Add("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)",vtMissing)->PutName(L"Area");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutVisible(VARIANT_FALSE);
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
113
|
Hides a symbol or item of the legend by code
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)",vtMissing)->PutName(L"Area");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)",vtMissing);
var_Serie->PutName(L"Population");
var_Serie->PutVisible(VARIANT_FALSE);
spGraph1->GetLegend()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
112
|
Defines the percentage of transparency for displaying tooltips on series
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exSerieCursorTooltipTransparent,RGB(75,0,0));
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)",vtMissing);
spGraph1->GetSeries()->Add("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)",vtMissing);
spGraph1->GetCursor()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
111
|
Defines the percentage of transparency for displaying tooltips on axes
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exAxisCursorTooltipTransparent,RGB(75,0,0));
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)",vtMissing);
spGraph1->GetSeries()->Add("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)",vtMissing);
spGraph1->GetCursor()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
110
|
Specifies the percent of transparency to show the overview-selection (0 indicates opaque, 50% indicates semi-transparent, and 100% indicates fully transparent)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGraph1->PutBackground(EXGRAPHLib::exOverviewSelTransparent,RGB(75,0,0));
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
109
|
Changes the color to show the overview's selection (EBN color)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGraph1->PutBackground(EXGRAPHLib::exOverviewSel,0x1000000);
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
108
|
Changes the color to show the overview's selection (solid color)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exOverviewSel,0x10000ff);
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
107
|
Changes the color to show the overview's selection
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exOverviewSel,RGB(255,0,0));
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
106
|
Changes the overview's background
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exOverviewSelOut,RGB(240,240,240));
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
105
|
Specifies the visual-appearance to display the left/right parts outside of the overview-selection
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exOverviewSelOut,RGB(240,240,240));
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
104
|
Adds left/ resize-margins of the overview's selection to resize it (EBN)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGraph1->PutBackground(EXGRAPHLib::exOverviewSelResize,0x1000000);
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
103
|
Adds left/ resize-margins of the overview's selection to resize it
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exOverviewSelResize,RGB(1,0,0));
spGraph1->PutValueSize(6);
spGraph1->PutData("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt");
EXGRAPHLib::ISeriePtr var_Serie = spGraph1->GetSeries()->Add(vtMissing,vtMissing);
var_Serie->PutName(L"aapl");
var_Serie->PutData("AAPL (open),AAPL (high),AAPL (low),AAPL (close)");
var_Serie->PutType(L"candle");
spGraph1->GetOverview()->PutVisible(VARIANT_TRUE);
spGraph1->EndUpdate();
|
102
|
Changes the colors to show the value's tooltip
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->PutBackground(EXGRAPHLib::exToolTipBackColor,RGB(1,0,0));
spGraph1->PutBackground(EXGRAPHLib::exToolTipForeColor,RGB(255,255,255));
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add("Pacific Ocean(16525), Atlantic Ocean(10646), Indian Ocean(7056), Southern Ocean(2033), Arctic Ocean(1406)",vtMissing)->PutShowValue(EXGRAPHLib::exPoint);
spGraph1->EndUpdate();
|
101
|
Changes the visual appearance of the borders of the tooltips
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXGRAPHLib' for the library: 'ExGraph 1.0 Control Library'
#import <ExGraph.dll>
using namespace EXGRAPHLib;
*/
EXGRAPHLib::IGraphPtr spGraph1 = GetDlgItem(IDC_GRAPH1)->GetControlUnknown();
spGraph1->BeginUpdate();
spGraph1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGraph1->PutBackground(EXGRAPHLib::exToolTipAppearance,0x1000000);
spGraph1->PutAutoFit(VARIANT_TRUE);
spGraph1->GetSeries()->Add("Pacific Ocean(16525), Atlantic Ocean(10646), Indian Ocean(7056), Southern Ocean(2033), Arctic Ocean(1406)",vtMissing)->PutShowValue(EXGRAPHLib::exPoint);
spGraph1->EndUpdate();
|